﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class shop_Order_Print : PageBase
{
    public string CreateDate = DateTime.Today.ToShortDateString();
    public string OrderNo = ""; 
    public DataTable dt = null;

    protected void Page_Load(object sender, EventArgs e)
    {
        ReadAction();
        BindData();
    }

    private void ReadAction()
    {
        hID.Value = Shove._Web.Utility.GetRequest("ID");        
    }

    private void BindData()   //表头信息
    {
        long ID = Shove._Convert.StrToLong(hID.Value, 0);

        dt = new DAL.Tables.tbl_Shop_SalesDetail().Open("","[SalesID]=" + ID,"");

        DataTable dt2 = new DAL.Views.V_Shop_SalesMaster().Open("","[ID]=" + ID,"");

        if (dt2 != null)
        {
            OrderNo = dt2.Rows[0]["SalesNO"].ToString();
            lbShopName.Text = dt2.Rows[0]["CreateShopNo"].ToString();
            lbShopName2.Text = dt2.Rows[0]["CreateShopNo"].ToString();
            lbShopUrl.Text = " (" + dt2.Rows[0]["SiteURL"].ToString() + ")";
            
            lbCustomerNO.Text = dt2.Rows[0]["CustomerName"].ToString();
            lbConsigneeAdress.Text = dt2.Rows[0]["ConsigneeAdress"].ToString();
            lbConsigneeTel.Text = dt2.Rows[0]["ConsigneeTel"].ToString();            

        }
    }
  

}
